package com.guojizhuang.join;

import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;

import java.io.IOException;

public class LocationMapper extends Mapper<LongWritable, Text, LongWritable,Text> {
    @Override
    protected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {
        String[] stuAttr = value.toString().split("\t");
        context.write(new LongWritable(Long.parseLong(stuAttr[0])), new Text("location:"));
    }
}
